package com.itheima.mapper;

import com.itheima.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface UserMapper {
    //根据用户名和密码查询
    @Select("select * from user where username=#{u}  and  password=#{pwd}")
    User findByUsernameAndPwd(@Param("u") String username, @Param("pwd") String password);
}
